/**
  ******************************************************************************
  * @file    SCHEDULE_START.h
  * @author  Feirui_Joe
  * @version V0.1
  * @date    07/26/2010
  * @brief   Clock handling
  ******************************************************************************
  * @copy
  *
  * <h2><center>&copy; COPYRIGHT 2010 Feirui</center></h2>
  */ 



/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef  __SCHEDULE_START_H__
#define  __SCHEDULE_START_H__


#ifdef __cplusplus
 extern "C" {
#endif


/**
  * @brief GLOBALS RAM definition
  */
#ifdef   SCHEDULE_START_GLOBALS
#define  SCHEDULE_START_EXT
#else
#define  SCHEDULE_START_EXT  extern
#endif


#define Schedule1Order                         0
#define Schedule2Order                         1
#define Schedule3Order                         2
#define Schedule4Order                         3
#define Schedule5Order                         4
#define Schedule6Order                         5
#define Schedule7Order                         6
#define Schedule8Order                         7
#define Schedule9Order                         8
#define Schedule10Order                        9
#define Schedule11Order                        10
#define Schedule12Order                        11
#define Schedule13Order                        12
#define Schedule14Order                        13
#define Schedule15Order                        14
#define Schedule16Order                        15
#define ScheduleOrdNum                         (Schedule16Order+1)
SCHEDULE_START_EXT const uint16_t ScheduleDataBaseAdrListTbl[ScheduleOrdNum];

#define ScheduleAdrOrd_RunWeekNum              0
#define ScheduleAdrOrd_RunWeekOrd              1
#define ScheduleAdrOrd_RunClock                2
#define ScheduleAdrOrd_RunTime                 3
#define ScheduleAdrOrd_TOTNum                  (ScheduleAdrOrd_RunTime+1)



SCHEDULE_START_EXT void PORGlobalRAMReset_Schedule(void);
SCHEDULE_START_EXT void ScheduleStartWorkLoadHandle(void);

#ifdef __cplusplus
}
#endif


#endif   /*  __SCHEDULE_START_H__  */

/******************* (C) COPYRIGHT 2010 Feirui *****END OF FILE****/